package com.wing.productionPlan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.productionPlan.model.entity.ProProductDeliveryOrderDetail;
import com.wing.productionPlan.model.response.ProProductDeliveryCollectionDetailVo;
import com.wing.productionPlan.model.response.ProProductDeliveryCollectionTwoVo;
import com.wing.productionPlan.model.response.ProProductDeliveryOrderDetailVo;
import com.wing.web.excel.ProProductOrderExcelln;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;


/**
 * 提货订单详情信息-Service
 *
 * @author
 */
public interface ProProductDeliveryOrderDetailService extends IService<ProProductDeliveryOrderDetail> {

    /**
     * 查询提货详情
     * @param pg
     * @param map
     * @return
     */
    Page<ProProductDeliveryOrderDetailVo> pageList4app(Page<ProProductDeliveryOrderDetailVo> pg, Map map);

    /**
     * 修改提货订单详情
     * @param proProductDeliveryOrder
     * @return
     */
    int updateInfo(ProProductDeliveryOrderDetail proProductDeliveryOrder);

    /**
     * 添加提货订单详情
     * @param proProductDeliveryOrder
     * @return
     */
    int add(ProProductDeliveryOrderDetail proProductDeliveryOrder);

    /**
     * 
     * @param pg
     * @param map
     * @return
     */
    Page<ProProductDeliveryCollectionTwoVo> pageListCollect4app(Page<ProProductDeliveryCollectionTwoVo> pg, Map map);

    /**
     * 查询提货明细列表
     * @param map
     * @return
     */
    List<ProProductDeliveryCollectionDetailVo> collectList(Map map);

    /**
     * 导入excel
     * @param list
     */
    JsonResult importExcel(List<ProProductOrderExcelln> list, String orderNo, LocalDate deliveryTime);
}
